// pages/index/index.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    // url: 'http://192.168.2.57/#',
    url: 'https://www.haitaiint.com/htmp/weixin-api/#',
    itemList: [{
      title: "使用postMessage",
      path: '/pages/post-message-page/post-message-page'
    }, {
      title: "使用navigateTo",
      path: '/pages/navigate-to-page/navigate-to-page'
    }],
  },

  /**
   * 点击跳转
   */
  clickItem(event) {
    let url = event.currentTarget.dataset.value
    wx.navigateTo({
      // url: url
      url: url + '?url=' + this.data.url
    })
  }
})